#include "guiterm.hpp"

TerminalFlow::TerminalFlow(QScrollBar *scrollBar, QWidget *parent)
	:QWidget(parent)
{
	layout = new TerminalLayout(scrollBar);
	
	setLayout(layout);
	
	setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
}

void TerminalFlow::addSegment(ViewSegment *segment)
{
	layout->addWidget(segment);
}

void TerminalFlow::removeSegment(ViewSegment *segment)
{
	layout->removeWidget(segment);
}

